import type { App } from 'vue'

import { autoHeight } from './autoHeight'
import { hasPerm } from './hasPermission'

// 全局注册 directive
export function setupDirective(app: App) {
  app.directive('autoH', autoHeight)
  app.directive('has', hasPerm)
}
